package org.cuit.epoch.seon.example;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-18
 */
public class Main {
    public static void main(String[] args) {
        Composite root = new Composite("root");
        root.add(new Leaf("test1"));
        root.add(new Leaf("test2"));

        Composite compositeX = new Composite("Composite X");
        compositeX.add(new Leaf("test3"));
        compositeX.add(new Leaf("test4"));
        root.add(compositeX);


        Composite compositeY = new Composite("Composite Y");
        compositeY.add(new Leaf("test5"));
        compositeY.add(new Leaf("test6"));
        compositeX.add(compositeY);

        root.display(0);
    }
}
